PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Control Statements

A control statement is statement that controls when and how other statements are executed. Most control statements are compound statements--that is, statements that contain other statements.

By default, AppleScript executes the statements in a script in sequence, one after the other. Control statements can change the order in which AppleScript executes statements by causing AppleScript to repeat or skip statements or go to a different statement.

The first two sections in this chapter provide general information on working with control statements:

The rest of the chapter describes the following AppleScript control statements:

Table A-4 summarizes the syntax for the control statements that are described in this chapter.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)